import {post, put,del} from "@/utils/request";

//添加项目
export const insert = (data) => post("/api/projects",data);
export const findPage = (data) => post("/api/projects/findPage",data);
export const updateProject = (data) => put("/api/projects",data);
// export const deleteProject = (id) => del("/api/projects/?id="+id);

export const deleteProject = (id) => del(`/api/projects/${id}`);
